inline double sqr(double d){return d*d;}
inline double dist(double x1, double y1, double x2, double y2)
{
	return sqrt(sqr(x1-x2)+sqr(y1-y2));
}
